<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="/common/common.jspf" %>
<style>
<!--
.h10{
	height: 10px;
}
#search{
	margin-left:10px;
}
-->
</style>
	<div class="m-b-md">
		<div class="h10"></div>
		<form class="form-inline" role="form" id="searchForm" name="searchForm">
			<a href="javascript:grid.exportData('/party/exportDetail.shtml?partyId='+${partyId})" class="btn btn-info" id="search">导出excel</a>
		</form>
	</div>
	<header class="panel-heading">
	<div class="doc-buttons">
		<c:forEach items="${res}" var="key">
			${key.description}
		</c:forEach>
	</div>
	</header>
	<div class="table-responsive">
		<div id="paging" class="pagclass"></div>
	</div>
	
<script type="text/javascript">

var dict = [];
<c:forEach items="${dict }" var="record">
dict.push({'value':'${record.value}','label':'${record.label}'});
</c:forEach>
var detailId='${partyId}';
var pageii = null;
var grid = null;
$(function() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [{
			colkey : "partyId",
			name : "活动名称",
			renderData : function(rowindex,data, rowdata, column) {
				return "<span title='"+data+"'>"+data+"</span>";
			}
		}, {
			colkey : "openid",
			name : "参与人",
			renderData : function(rowindex,data, rowdata, column) {
				return "<span title='"+data+"'>"+data+"</span>";	
			}
		},  {
			colkey : "comment",
			name : "评价内容",
			renderData : function(rowindex,data, rowdata, column) {
				return "<span title='"+data+"'>"+data+"</span>";
			}
		}, {
			colkey : "starLevel",
			name : "评价星级",
			renderData : function(rowindex,data, rowdata, column) {
				return "<span style='text-align:cetner'><div class='star'><div class='lightstar star"+data+"'></div></div></span>"
			}
		}
		],
		jsonUrl : rootPath + '/party/findPartyDetail.shtml?id='+detailId,
		checkbox : true
	});
});

</script>